﻿using ProjectManage.Core.Entity.SYS;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProjectManage.Application.System.SendData
{
    public class MenuSendData : IEntitySeedData<SysMenu>
    {
        // 配置种子数据
        public IEnumerable<SysMenu> HasData(DbContext dbContext, Type dbContextLocator)
        {
            return new List<SysMenu>
            {
                new SysMenu { Id = new Guid("02abb8a1-c7b4-4546-b1de-a70d2970b8eb"),
                              AppCode = "0",
                              Icon = "fa-user",
                              MenuCode = "1101",
                              MenuType = "1",
                              Name = "用户管理",
                              ParentCode = "11",
                              Url = "/System/User",
                              Creater ="Admin",
                              CreatedName ="管理员",
                              CreatedTime = DateTime.Now},
                 new SysMenu { Id = new Guid("0fb81879-aa0e-448c-92a3-76db10be9a88"),
                              AppCode = "0",
                              Icon = "fa-rocket",
                              MenuCode = "1102",
                              MenuType = "1",
                              Name = "角色管理",
                              ParentCode = "11",
                              Url = "/System/Role",
                              Creater ="Admin",
                              CreatedName ="管理员",
                              CreatedTime = DateTime.Now},
                  new SysMenu { Id = new Guid("5ef9e1f6-77a9-4ff0-bb3d-185b215a496c"),
                              AppCode = "0",
                              Icon = "fa-cogs",
                              MenuCode = "11",
                              MenuType = "0",
                              Name = "系统管理",
                              ParentCode = null,
                              Url = null,
                              Creater ="Admin",
                              CreatedName ="管理员",
                              CreatedTime = DateTime.Now},
                   new SysMenu { Id = new Guid("66d7c892-b261-4e10-846b-b7aed63f0189"),
                              AppCode = "0",
                              Icon = "fa-flag",
                              MenuCode = "10",
                              MenuType = "1",
                              Name = "主页",
                              ParentCode = null,
                              Url = "/",
                              Creater ="Admin",
                              CreatedName ="管理员",
                              CreatedTime = DateTime.Now},
                    new SysMenu { Id = new Guid("7f4a3a81-1246-4c5d-8fdc-418af49afd51"),
                              AppCode = "0",
                              Icon = "fa-window-restore",
                              MenuCode = "1105",
                              MenuType = "1",
                              Name = "角色菜单",
                              ParentCode = "11",
                              Url = "/System/RoleMenu",
                              Creater ="Admin",
                              CreatedName ="管理员",
                              CreatedTime = DateTime.Now},
                     new SysMenu { Id = new Guid("9252f813-ba21-4609-96bb-9263e2ce0ada"),
                              AppCode = "0",
                              Icon = "fa-book",
                              MenuCode = "1103",
                              MenuType = "1",
                              Name = "数据字典",
                              ParentCode = "11",
                              Url = "/System/Dictionary",
                              Creater ="Admin",
                              CreatedName ="管理员",
                              CreatedTime = DateTime.Now},
                      new SysMenu { Id = new Guid("d3ea16c7-f9eb-4cab-93b0-7a2aa773184c"),
                              AppCode = "0",
                              Icon = "fa-list",
                              MenuCode = "1104",
                              MenuType = "1",
                              Name = "菜单管理",
                              ParentCode = "11",
                              Url = "/System/Menu",
                              Creater ="Admin",
                              CreatedName ="管理员",
                              CreatedTime = DateTime.Now},
                       new SysMenu { Id = new Guid("f941100e-4b48-402d-81b0-09feba588d8d"),
                              AppCode = "0",
                              Icon = "fa-tree",
                              MenuCode = "1106",
                              MenuType = "1",
                              Name = "用户角色",
                              ParentCode = "11",
                              Url = "/System/UserRole",
                              Creater ="Admin",
                              CreatedName ="管理员",
                              CreatedTime = DateTime.Now},
            };
        }
    }
}
